//
//  Slider.h
//  播放器模拟(列表)
//
//  Created by lanou3g on 15/11/3.
//  Copyright © 2015年 songhaowen. All rights reserved.
//

#import <UIKit/UIKit.h>
#define kThumbWidth 20
#define kSliderWidth 230
@class Slider;

@protocol SliderDelegate <NSObject>

- (void)progressSliderDidStart:(Slider *)progressSlider value:(float)value;
- (void)progressSliderDidMoveEnd:(Slider *)progressSlider value:(float)value;
@end

@interface Slider : UIView



@property (nonatomic, assign) CGFloat bufferProgress;
@property (nonatomic, assign) CGFloat valueProgress;
@property (nonatomic, strong) UIView *thumbView;
@property (nonatomic, strong) UIView *bufferView;
@property (nonatomic, strong) UIView *valueView;

@property (nonatomic,assign) id<SliderDelegate> delegate;

@end
